package com.example.demo.mapper;

import com.example.demo.bean.CmsCategory;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CmsCategoryMapper {
    int deleteByPrimaryKey(String id);

    int insert(CmsCategory record);

    CmsCategory selectByPrimaryKey(String id);

    List<CmsCategory> selectAll();
    
    List<CmsCategory>  allCategoryWithPArent();
    
    int batchDeleteByIds(@Param("ids")String[] ids);
 
    int updateByPrimaryKey(CmsCategory record);
    
    int selectCountRefPid(String id);
}